I've been trying to narrow down an error message that KMotionDotNet v433c is showing.
From time to time I will see a dialog box appear containing the text
"Unable to open input file
mypath/myfilename"
I did a text search through the KmotionDotNet source code and found this in the rs274ngc.cpp file.
My (pseudo) code currently does this:
Creates a line or collection of lines of GCode operations.
Writes those lines to a text file.
Waits for completion and closing of the file
Makes certain there is not already an Interpreter running.
Sends the filename to the Interpreter to be run.
Repeats.
At this point the error dialog appears--not always, but perhaps 1 out of 50 times. I am reasonably certain the the file is intact and ready for reading, but the error dialog is a bit vague. The C++ (not my strong point) and error dialog could use more specific
error message(s). Is the file empty? Truly missing? Too long? Permission error? Open/by whom? Perhaps an error code needs to be returned by Interpret() instead of the abruptly halting dialog box. Perhaps a more detailed error message can be returned by the
Interpreter.ErrorReceived event?
I may have mentioned this before....it would be helpful to be able to send a single line of gcode (or multiple lines) to an overload of Interpret(), bypassing the write to file->Interpret, repeat cycle.
sam marrocco | chief technical officer
ringside.cutters.picnic.moonlink
248 548 2500 w
248 910 3344 c
ringsidecreative.com